import { pubRequire } from '@utils/public'
const baseUrl = '/works/videos-material'
//作品维护列表
export function getSearchList(obj, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}`, obj, callbBack, errBack)
}
//导入接口
export function importUrl() {
  return `${baseUrl}/import`
}
//下载模板接口
export function downUrl() {
  return `${baseUrl}/download`
}
//新增预发布作品
export function pubVideo(obj, callbBack, errBack) {
  return pubRequire('post', `${baseUrl}/release`, obj, callbBack, errBack)
}
//查询预发布记录
export function getDetail(id, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}/release/${id}`, '', callbBack, errBack)
}
//修改预发布作品
export function editVideo(id, obj, callbBack, errBack) {
  return pubRequire('post', `${baseUrl}/release/${id}`, obj, callbBack, errBack)
}
